<?php

/**
 * Authorization gate for REST API
 *
 * @package Concerto
 * @subpackage Auth
 * @author Jason Raede <jason@torchdm.com>
 */
namespace application\auth;

class API {
	/**
	 * Checks if the user has permission to use the REST API
	 *
	 * @return bool TRUE or FALSE for permission
	 */
	public function authorized() {
		return TRUE;
	}
	
	/**
	 * Handles authorization errors if the above check fails
	 *
	 * @param const $error The error thrown
	 */
	public function handleError($error) {
	
	}
}
?>